package com.entity;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the CONTENT_ database table.
 * 
 */
@Entity
@Table(name="CONTENT_")
@NamedQuery(name="Content.findAll", query="SELECT c FROM Content c")
public class Content implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CONTENT__CONTENTID_GENERATOR", sequenceName="SEQ",initialValue=1,allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CONTENT__CONTENTID_GENERATOR")
	@Column(name="CONTENT_ID")
	private long contentId;

	@Column(name="CONTENT_IFDELETE")
	private BigDecimal contentIfdelete;

	@Column(name="CONTENT_IFMUST")
	private BigDecimal contentIfmust;

	@Temporal(TemporalType.DATE)
	@Column(name="CONTENT_INTODATE")
	private Date contentIntodate;

	@Column(name="CONTENT_NAME")
	private String contentName;

	@Column(name="CONTENT_PARAMETER")
	private String contentParameter;

	@Column(name="CONTENT_TYPE")
	private String contentType;

	//bi-directional many-to-one association to Diystatus
	@ManyToOne
	@JoinColumn(name="DIYSTATUS_ID")
	private Diystatus diystatus;

	//接件状况自定义id
	@Transient
	private Long diystatusId;
	
	public Long getDiystatusId() {
		return diystatusId;
	}

	public void setDiystatusId(Long diystatusId) {
		this.diystatusId = diystatusId;
	}

	public Content() {
	}

	public long getContentId() {
		return this.contentId;
	}

	public void setContentId(long contentId) {
		this.contentId = contentId;
	}

	public BigDecimal getContentIfdelete() {
		return this.contentIfdelete;
	}

	public void setContentIfdelete(BigDecimal contentIfdelete) {
		this.contentIfdelete = contentIfdelete;
	}

	public BigDecimal getContentIfmust() {
		return this.contentIfmust;
	}

	public void setContentIfmust(BigDecimal contentIfmust) {
		this.contentIfmust = contentIfmust;
	}

	public Date getContentIntodate() {
		return this.contentIntodate;
	}

	public void setContentIntodate(Date contentIntodate) {
		this.contentIntodate = contentIntodate;
	}

	public String getContentName() {
		return this.contentName;
	}

	public void setContentName(String contentName) {
		this.contentName = contentName;
	}

	public String getContentParameter() {
		return this.contentParameter;
	}

	public void setContentParameter(String contentParameter) {
		this.contentParameter = contentParameter;
	}

	public String getContentType() {
		return this.contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public Diystatus getDiystatus() {
		return this.diystatus;
	}

	public void setDiystatus(Diystatus diystatus) {
		this.diystatus = diystatus;
	}

}